package com.srxz.personnelsystem.system.service;

import com.srxz.personnelsystem.system.entity.DepartToPosition;
import com.srxz.personnelsystem.system.mapper.dto.DepartmentDTO;
import com.srxz.personnelsystem.util.BackMessage;
import com.srxz.personnelsystem.util.PageParam;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface DepartmentService {
    public BackMessage save(DepartmentDTO departmentDTO);

    public BackMessage update(DepartmentDTO departmentDTO);

    public BackMessage delete(DepartmentDTO departmentDTO);

    public BackMessage search(String id);

    public BackMessage searchToPage(PageParam pageParam);

    public BackMessage searchByParent(String parentId);

    public BackMessage searchAllOfTree();

    public BackMessage saveToPosition(DepartToPosition departToPosition);

    public BackMessage deleteToPosition(DepartToPosition departToPosition);

    public BackMessage deleteToPositionlist(List<DepartToPosition> departToPositions);

    public BackMessage searchAllCanUse();
}
